const mixin = {
  data() {
    return {
      currentPage: 1,
      pageSize: 10,
      total: 0
    }
  },
  methods: {
    changePageSize(pageSize) {
      this.pageSize = pageSize
      this.currentPage = 1
      this.getList()
    },
    changeCurrentPage(currentPage, pageSize) {
      this.currentPage = currentPage
      this.pageSize = pageSize
      this.getList()
    },
    getList() {}
  }
}
export default mixin
